# Limit state function, P.C.J. Hoogenboom, 19 October 2025 # Convex envelope of the load combinations in the space of load cases and strength cases NrCases = 3 # Number of load cases and strength cases NrLoadComb = 4 # Number of load combinations # Load combinations # Characteristic values and partial safety factors # steel floor wind f = [[244/0.3, 0.3*2.48, 0.3*1.41], [244/1.2, 0.3*1.3*2.48, 1.4*1.41], # load combination 1 [244/1.2, 1.4*2.48, 0.3*1.3*1.41], # load combination 2 [244/1.2, 1.4*2.48, 0.0], # load combination 3 [244/1.2, 0.0, 1.4*1.41]] # load combination 4 n = [] import numpy as np # Z = c0*f0 + c1*f1 + c2*f2 # 1.0 = c0*244/1.0 + c1* 1.0*2.48 + c2* 1.0*1.41 # 0.0 = c0*244/1.2 + c1*0.3*1.3*2.48 + c2* 1.4*1.41 # 0.0 = c0*244/1.2 + c1* 1.4*2.48 + c2*0.3*1.3*1.41 # solve(n0,n1,n2) d = [[0,1,2],[0,1,3],[0,1,4],[0,2,3],[0,2,4],[0,3,4]] for i in range(6): A = np.array([f[d[i][j]] for j in range(NrCases)]) b = np.array([0.0 for j in range(NrCases)]) b[0]=1.0 c=np.linalg.solve(A,b) Out=False for j in range(NrLoadComb): # Check if point is outside of the limit state function? Z=0 for k in range(NrCases): Z=Z+c[k]*f[j+1][k] if Z<-0.00000001: Out=True if not(Out): n.append(c.tolist()) print(n)